package com.marketsim.common.bean;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Alex on 28.03.2014.
 */
public class PortfolioValueBean implements BigDecimalElement {
    private BigDecimal amount;
    private Date date;

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "PortfolioValueBean{" +
                "amount=" + amount +
                ", date=" + date +
                '}';
    }

    @Override
    public BigDecimal toBigDecimal() {
        return amount;
    }
}
